package com.jushu.storbox.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.jushu.storbox.R;
import com.jushu.storbox.util.PublicTools;
public class WelcomePageB extends Fragment{
	private RelativeLayout pageLayout;
	private LayoutInflater layoutInflater;
	private ImageView image;
	private Intent intent = null;
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) 
	{
		this.layoutInflater = inflater;
		initialize() ;
		return pageLayout;
	}
	private void initialize() 
	{
		pageLayout = (RelativeLayout)layoutInflater.inflate(R.layout.welcome_page_b_layout,null);
		image = (ImageView)pageLayout.findViewById(R.id.welcome_page_image_b);
		initData();
	}
	private void initData()
	{
		if (PublicTools.isLocaleLanguageCN()) {
			image.setBackgroundResource(R.mipmap.welcome_page_bg_b);
		} else {
			image.setBackgroundResource(R.mipmap.welcome_page_bg_b_en);
		}
	}
}
